package weeklyreport

import grails.test.mixin.TestFor
import spock.lang.Specification

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(User)
class UserSpec extends Specification {

    def setup() {
    }

    def cleanup() {
    }

    void testValidation() {
		given:
			User user = new User(
				name:"景轩",
				password:"1234",
				role:"admin"
			)
		expect:
			user.validate()
    }
}
